package com.manage.func.article.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.manage.base.service.impl.BaseServiceImpl;
import com.manage.func.article.dao.IArticleDao;
import com.manage.func.article.model.ArticleBean;
import com.manage.func.article.model.ArticleCatalogBean;
import com.manage.func.article.model.ArticleCommentBean;
import com.manage.func.article.service.IArticleService;

@Service("articleServiceManage")
public class ArticleServiceImpl extends BaseServiceImpl<ArticleBean> implements IArticleService {

	@Autowired
	IArticleDao dao;

	@Override
	public List<ArticleBean> selectArticleList(ArticleBean bean) {
		return dao.selectArticleList(bean);
	}

	@Override
	public int insertArticle(ArticleBean queryBean) {
		return dao.insertArticle(queryBean);
	}

	@Override
	public int deleteArticle(ArticleBean queryBean) {
		return dao.deleteArticle(queryBean);
	}

	@Override
	public int updateArticle(ArticleBean queryBean) {
		return dao.updateArticle(queryBean);
	}

	@Override
	public int selectTotalCount(ArticleBean queryBean) {
		return dao.selectTotalCount(queryBean);
	}

	@Override
	public List<ArticleCatalogBean> selectArticleCatalogList() {
		return dao.selectArticleCatalogList();
	}

	@Override
	public ArticleBean selectArticleById(ArticleBean bean) {
		return dao.selectArticleById(bean);
	}

	@Override
	public List<ArticleCommentBean> selectArticleCommentListById(ArticleCommentBean bean) {
		return dao.selectArticleCommentListById(bean);
	}

	@Override
	public int updateCommentStatus(ArticleCommentBean queryBean) {
		return dao.updateCommentStatus(queryBean);
	}

	@Override
	public int selectArticleCommentCountById(ArticleCommentBean queryBean) {
		return dao.selectArticleCommentCountById(queryBean);
	}

	@Override
	public void deleteTotalComment(ArticleCommentBean bean) {
		dao.deleteTotalComment(bean);
	}

	@Override
	public void delCommont(ArticleCommentBean bean) {
		dao.delCommont(bean);
	}

}
